package com.zsrt.java.day20161223.cg.demo01;

import org.junit.Test;

public class IfTest {

	@Test
	public void xx01() {
		int teacherAge = 33;
		int studentAge = 23;
		boolean result = teacherAge > studentAge;
		System.out.println(result);

		if (result) {   //���Ϊ�棬��ִ�С�

			System.out.println("Hello World01 ...");
			System.out.println("Hello World02 ...");
		}
	}
	@Test
	public void xx02() {
		int teacherAge = 33;
		int studentAge = 39;
		boolean result = teacherAge > studentAge;
		System.out.println(result);
		
		if (result) {   //���Ϊ�棬��ִ�С�
			
			System.out.println("��ʦ������Ƚϴ� �� ");
			System.out.println(teacherAge - studentAge);
		}else{
			System.out.println("��ʦ������Ƚ�С��С�� ");
			System.out.println(studentAge - teacherAge);
		}
	}
}